<!DOCTYPE html>
<html>

<head>
  <script src="../node_modules/angular/angular.js"></script>
</head>

<body ng-app="demo">
  <div ng-controller="DemoController"></div>
  <script>
    angular
      .module('demo', [])
      .controller('DemoController', ['$scope', function ($scope) {
        $scope.obj = {
          price: 2,
          count: 10
        }
        const result = $scope.$eval('obj.price * obj.count')
        console.log(result)
      }]);
  </script>
</body>

</html>